<div class='grid_12'>
    <div class='block-border'>
        <div class='block-header'>
            <h1>Food Form</h1>
            <span></span>
        </div>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'food-form',
            'enableAjaxValidation' => false,
            'htmlOptions' => array('class' => 'block-content form')
                ));
        ?>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'name'); ?>
                <?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255)); ?>
                <?php echo $form->error($model, 'name'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'foodGroupId'); ?>
                <?php echo $form->textField($model, 'foodGroupId'); ?>
                <?php echo $form->error($model, 'foodGroupId'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'shortDescription'); ?>
                <?php echo $form->textField($model, 'shortDescription', array('size' => 60, 'maxlength' => 60)); ?>
                <?php echo $form->error($model, 'shortDescription'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'water'); ?>
                <?php echo $form->textField($model, 'water'); ?>
                <?php echo $form->error($model, 'water'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'energyKcal'); ?>
                <?php echo $form->textField($model, 'energyKcal'); ?>
                <?php echo $form->error($model, 'energyKcal'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'protein'); ?>
                <?php echo $form->textField($model, 'protein'); ?>
                <?php echo $form->error($model, 'protein'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'carbohydrate'); ?>
                <?php echo $form->textField($model, 'carbohydrate'); ?>
                <?php echo $form->error($model, 'carbohydrate'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'totalDietaryFiber'); ?>
                <?php echo $form->textField($model, 'totalDietaryFiber'); ?>
                <?php echo $form->error($model, 'totalDietaryFiber'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'totalSugar'); ?>
                <?php echo $form->textField($model, 'totalSugar'); ?>
                <?php echo $form->error($model, 'totalSugar'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'calcium'); ?>
                <?php echo $form->textField($model, 'calcium'); ?>
                <?php echo $form->error($model, 'calcium'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'iron'); ?>
                <?php echo $form->textField($model, 'iron'); ?>
                <?php echo $form->error($model, 'iron'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'magnesium'); ?>
                <?php echo $form->textField($model, 'magnesium'); ?>
                <?php echo $form->error($model, 'magnesium'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'phosphorus'); ?>
                <?php echo $form->textField($model, 'phosphorus'); ?>
                <?php echo $form->error($model, 'phosphorus'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'potassium'); ?>
                <?php echo $form->textField($model, 'potassium'); ?>
                <?php echo $form->error($model, 'potassium'); ?>
            </p>
        </div>
        <div class='_25'>
            <p>
                <?php echo $form->labelEx($model, 'sodium'); ?>
                <?php echo $form->textField($model, 'sodium'); ?>
                <?php echo $form->error($model, 'sodium'); ?>
            </p>
        </div>
        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'zinc'); ?>
                <?php echo $form->textField($model, 'zinc'); ?>
                <?php echo $form->error($model, 'zinc'); ?>
            </p>
        </div>
        <div class='_25'>            
            <p>
                <?php echo $form->labelEx($model, 'copper'); ?>
                <?php echo $form->textField($model, 'copper'); ?>
                <?php echo $form->error($model, 'copper'); ?>
            </p>
        </div>
        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'manganese'); ?>
                <?php echo $form->textField($model, 'manganese'); ?>
                <?php echo $form->error($model, 'manganese'); ?>
            </p>
        </div>
        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'selenium'); ?>
                <?php echo $form->textField($model, 'selenium'); ?>
                <?php echo $form->error($model, 'selenium'); ?>
            </p>
        </div>
        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'vitaminC'); ?>
                <?php echo $form->textField($model, 'vitaminC'); ?>
                <?php echo $form->error($model, 'vitaminC'); ?>
            </p>
        </div>
        <div class='_25'>             <p>
                <?php echo $form->labelEx($model, 'thiaminB1'); ?>
                <?php echo $form->textField($model, 'thiaminB1'); ?>
                <?php echo $form->error($model, 'thiaminB1'); ?>
        </div>
        <div class='_25'>            
            <p>
                <?php echo $form->labelEx($model, 'riboflavinB2'); ?>
                <?php echo $form->textField($model, 'riboflavinB2'); ?>
                <?php echo $form->error($model, 'riboflavinB2'); ?>
            </p>
        </div>

        <div class='_25'>            
            <p>
                <?php echo $form->labelEx($model, 'niacin'); ?>
                <?php echo $form->textField($model, 'niacin'); ?>
                <?php echo $form->error($model, 'niacin'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'vitaminB6'); ?>
                <?php echo $form->textField($model, 'vitaminB6'); ?>
                <?php echo $form->error($model, 'vitaminB6'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'folicAcid'); ?>
                <?php echo $form->textField($model, 'folicAcid'); ?>
                <?php echo $form->error($model, 'folicAcid'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'vitaminB12'); ?>
                <?php echo $form->textField($model, 'vitaminB12'); ?>
                <?php echo $form->error($model, 'vitaminB12'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'vitaminAIU'); ?>
                <?php echo $form->textField($model, 'vitaminAIU'); ?>
                <?php echo $form->error($model, 'vitaminAIU'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'vitaminE'); ?>
                <?php echo $form->textField($model, 'vitaminE'); ?>
                <?php echo $form->error($model, 'vitaminE'); ?>
            </p>
        </div>

        <div class='_25'>            
            <p>
                <?php echo $form->labelEx($model, 'vitaminDIU'); ?>
                <?php echo $form->textField($model, 'vitaminDIU'); ?>
                <?php echo $form->error($model, 'vitaminDIU'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'saturatedFattyAcid'); ?>
                <?php echo $form->textField($model, 'saturatedFattyAcid'); ?>
                <?php echo $form->error($model, 'saturatedFattyAcid'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'monoFattyAcid'); ?>
                <?php echo $form->textField($model, 'monoFattyAcid'); ?>
                <?php echo $form->error($model, 'monoFattyAcid'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'polyFattyAcid'); ?>
                <?php echo $form->textField($model, 'polyFattyAcid'); ?>
                <?php echo $form->error($model, 'polyFattyAcid'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'cholesterol'); ?>
                <?php echo $form->textField($model, 'cholesterol'); ?>
                <?php echo $form->error($model, 'cholesterol'); ?>
            </p>
        </div>

        <div class='_25'>            
            <p>
                <?php echo $form->labelEx($model, 'gramWeight1'); ?>
                <?php echo $form->textField($model, 'gramWeight1'); ?>
                <?php echo $form->error($model, 'gramWeight1'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'gramWeightDescription1'); ?>
                <?php echo $form->textField($model, 'gramWeightDescription1', array('size' => 60, 'maxlength' => 120)); ?>
                <?php echo $form->error($model, 'gramWeightDescription1'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'gramWeight2'); ?>
                <?php echo $form->textField($model, 'gramWeight2'); ?>
                <?php echo $form->error($model, 'gramWeight2'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'gramWeightDescription2'); ?>
                <?php echo $form->textField($model, 'gramWeightDescription2', array('size' => 60, 'maxlength' => 120)); ?>
                <?php echo $form->error($model, 'gramWeightDescription2'); ?>
            </p>
        </div>

        <div class='_25'>             
            <p>
                <?php echo $form->labelEx($model, 'percentRefuse'); ?>
                <?php echo $form->textField($model, 'percentRefuse'); ?>
                <?php echo $form->error($model, 'percentRefuse'); ?>
            </p>
        </div>

        <div class='clear'></div>
        <div class='block-actions'>
            <ul class='actions-right'>
                <li><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'button')); ?></li>
            </ul>
        </div>
        <?php $this->endWidget(); ?>
    </div>
    <div class="clear height-fix"> </div>
</div>
<div class='clear'></div>